﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Beeldbankmvc.Models
{
    public class MaintenanceRepository
    {
        BeeldbankLinqDataContext db = new BeeldbankLinqDataContext();

        public String ExecuteQuery(String inputString)
        {
            var cust = db.ExecuteQuery<BEELDBANK_MEDIAOBJECT>(inputString, "Test").First();

            return "Id: " + cust.Id.ToString() + "<br />Titel: " + cust.Titel + "<br />" + cust.Omschrijving + "<br />FileNummer: " + cust.FileNummer.ToString();
        }
        
    }
}